export const hasPermission={
    install(Vue){
        Vue.directive('hasPermission', {
            bind: function (el, binding, vnode) {

                const flag=sessionStorage.getItem('perms').indexOf(binding.value)
                if(flag===-1){
                    el.style.display='none';
                }

            }
        })
    }
}